package cc.yiueil.mapper;

import cc.yiueil.model.entity.RoleEntity;
import cc.yiueil.model.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    UserEntity getUserByUsername(@Param(value = "username") String username);

    List<RoleEntity> getRolesByUserId(@Param(value = "userId") Integer userId);
}
